﻿using _2112A_2_MES.Localization;
using Volo.Abp.Authorization.Permissions;
using Volo.Abp.Localization;

namespace _2112A_2_MES.Permissions;

public class _2112A_2_MESPermissionDefinitionProvider : PermissionDefinitionProvider
{
    public override void Define(IPermissionDefinitionContext context)
    {
        var myGroup = context.AddGroup(_2112A_2_MESPermissions.GroupName);
        //Define your own permissions here. Example:
        //myGroup.AddPermission(_2112A_2_MESPermissions.MyPermission1, L("Permission:MyPermission1"));
    }

    private static LocalizableString L(string name)
    {
        return LocalizableString.Create<_2112A_2_MESResource>(name);
    }
}
